package fr.esiag.isidis.pdsTeam.Data;

import java.util.HashMap;
import java.util.Map;

import fr.esiag.isidis.pdsTeam.beans.Ligne;
import fr.esiag.isidis.pdsTeam.beans.Station;
import fr.esiag.isidis.pdsTeam.beans.Train;
import fr.esiag.isidis.pdsTeam.views.LigneView;
import fr.esiag.isidis.pdsTeam.views.TrainView;

public class ParserDataInitValue extends ParserData {

	@Override
	public void ReadData() {
		trains = new HashMap<Integer, TrainView>();
		trains2 = new HashMap<Integer, Train>();
		lignesView = new HashMap<Integer, LigneView>();
		Train train1 = new Train(1, "ROVO");
		Train train2 = new Train(2, "ZUKO");
		Train train3 = new Train(3, "LUKO");
		Ligne ligne = new Ligne(1);
		ligne.add(new Station(1, "La defense"));
		ligne.add(new Station(2, "Gard de lyon"));
		ligne.add(new Station(3, "Auber"));
		ligne.add(new Station(4, "Point du Lac"));
		ligne.add(new Station(5, "Chatllet les halles"));
		LigneView ligneView = new LigneView(ligne, 100, 50, 85 * 3);
		lignesView.put(ligne.getId(), ligneView);
		trains.put(1, new TrainView(1, true, ligne, ligneView, train1));
		trains.put(2, new TrainView(1, false, ligne, ligneView, train2));
		// trains.put(3, new TrainView(1,false,ligne,ligneView,train3));
	}

}
